package com.lijianan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lijianan.entity.MeetingRoom;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface MeetingRoomMapper extends BaseMapper<MeetingRoom> {
    @Insert("INSERT INTO meetingroom (name, type, seating_capacity, price_per_hour) VALUES (#{name}, #{type}, #{seating_capacity}, #{price_per_hour})")
    @Options(useGeneratedKeys = true, keyProperty = "room_id")
    int insert(MeetingRoom meetingRoom);
}
